﻿using AnesSystem.Models;
using AnesSystem.Services;
using AnesSystem.Util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Documents;

namespace AnesSystem.ViewModels
{
    public class ZhiKongTongJiCtrlViewMode : BaseViewModel<ZhiKongTongJiCtrlViewMode>
    {
        #region Variables

        private DateTime _startTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month,1);
        private DateTime _endTime = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
        public List<QualityStatisticsModel> resultList = new List<QualityStatisticsModel>();
        private string accountName;

        #endregion

        #region Constructor
        public ZhiKongTongJiCtrlViewMode()
        {

        }
        #endregion

        #region Properties


        public DateTime StartTime
        {
            get
            {
                return _startTime;
            }

            set
            {
                _startTime = value;
            }
        }

        public DateTime EndTime
        {
            get
            {
                return _endTime;
            }

            set
            {
                _endTime = value;
            }
        }

        public string AccountName
        {
            get
            {
                return accountName;
            }

            set
            {
                accountName = value;
                RaisePropertyChanged("AccountName");
            }
        }
        #endregion

        #region 依赖属性

        #endregion

        #region Event

        #endregion

        #region Private Methods

        public void ZhiKongExcel(DateTime startTime, DateTime endTime, string accountName)
        {//制作统计Excel
            ExportToExcel.Instance.Excel.ExportParameterCommon(startTime.Year + "年 麻醉质量检测指标",startTime,endTime,accountName);
        }
        
        public void GongZuoLiangExcel(DateTime startTime, DateTime endTime, string accountName)
        {//制作统计Excel
            ExportToExcel.Instance.Excel.ExportParameterCommon(startTime.Year + "年 麻醉工作量统计", startTime, endTime, accountName);
        }




        #endregion

        #region Public/Protected Methods

        #endregion
    }
}
